/*
**NCS Network Library head files *.h
**This module provide the network API with socket for NCS 
**Because of using only UDP socket,and providing UDP API
**
**Copyright (C) 2015-xxxx andisat <www.andisat.com>
**
**Author: andisat
**Date:2015-12
**
*/


#ifndef __NCS_NETWORK__
#define __NCS_NETWORK__

#define SOCKOPT_NAME_MAX  64

int ncs_udp_serv_un(const char *path);
int ncs_udp_client_un(const char *local_path,const char *serv_path);

int ncs_udp_client_open(char *addr,int port);
int ncs_udp_serv_open(int port);
int socket_set_option(int fd,int level,int optname,
           const void *optval,int optlen);
int socket_get_option(int fd,int level,int optname,
            void *optval,int optlen);
#endif

